const path = require("path");

module.exports = {
  chainWebpack: config => {
    config.resolve.alias.set("@", path.resolve(__dirname, "src"));
  },
  configureWebpack: {
    devtool: "source-map"
  },
  devServer: {
    port: 3000
  },
  transpileDependencies: ["vuex-module-decorators"],
  // publicPath: "/"
  publicPath: process.env.NODE_ENV === "production" ? "/yczs-admin-vue/" : "/"
};
